<template>
  <div class="q-pa-md q-gutter-sm">
    <t-btn label="Alert" color="primary" @click="showPopup(show)" />
    <t-dialog :show="false" position="standard" :allow-focus-outside="true">
      <t-card>
        <t-card-section>
          <div class="text-h6">Alerawdawdwt</div>
        </t-card-section>

        <t-card-section class="q-pt-none">
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum
          repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis
          perferendis totam, ea at omnis vel numquam exercitationem aut, natus
          minima, porro labore.
        </t-card-section>

        <t-card-actions align="right">
          <t-btn flat label="OK" color="primary" v-close-popup />
        </t-card-actions>
      </t-card>
    </t-dialog>

    <t-dialog :show="false">
      <t-card>
        <t-card-section>
          <div class="text-h6">Alert</div>
        </t-card-section>

        <t-card-section class="q-pt-none">
          Lorem ipsum dolor sit amet consectetur adipisicing elit. Rerum
          repellendus sit voluptate voluptas eveniet porro. Rerum blanditiis
          perferendis totam, ea at omnis vel numquam exercitationem aut, natus
          minima, porro labore.
        </t-card-section>

        <t-card-actions align="right">
          <t-btn flat label="OK" color="primary" v-close-popup />
        </t-card-actions>
      </t-card>
    </t-dialog>

    <t-dialog :show="false">
      <t-card>
        <t-card-section>
          <div class="text-h6">Alert</div>
        </t-card-section>
        <t-card-section class="q-pt-none" style="font-size: 16px">
          awdawdwa
        </t-card-section>
      </t-card>
    </t-dialog>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      const alert = ref(false);
      function showPopup(show) {
        return show;
      }
      return {
        alert,
        show: ref(false),
        showPopup,
      };
    },
  };
</script>
